home *** CD-ROM | disk | FTP | other *** search
/ Georgia Wildfire Prevention / Georgia Wildfire Prevention.iso / mac / media / dirs / BackUp / code.cst / 00004_Script_advance after vid-sound < prev    next >
Text File  |  2002-10-15  |  729b  |  35 lines

  1. property tsprite,ttime,soundname
  2.  
  3. on new me
  4.   tsprite=0
  5.   ttime=0
  6.   soundname=""
  7. end
  8.  
  9. on getpropertydescriptionlist me
  10.   plist=[#tsprite:[#comment:"Video sprite channel",#format:#integer,#default:0],#soundname:[#comment:"Sound file",#default:"",#format:#string]]
  11.   return plist
  12. end
  13.  
  14. on beginsprite me
  15.   if tsprite<>0 then 
  16.     ttime=(sprite(tsprite).member.duration)-2
  17.     sprite(tsprite).movierate=1
  18.   end if
  19.   if soundname<>"" then puppetsound 1,soundname
  20. end 
  21.  
  22. on exitframe me
  23.   if ttime<>0 then
  24.     if sprite(tsprite).movietime>ttime then
  25.       go the frame+1
  26.     end if
  27.   end if
  28.   if soundname<>"" then
  29.     if soundbusy(1)=0 then
  30.       go the frame+1
  31.     end if
  32.   end if
  33.   go the frame
  34. end
  35.